package com.wy.crl.simple;

import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.widgets.Button;

import com.wy.base.AbstractWizardPage;

/**
 * Spring RestController Simple Class向导页面
 * 
 * @auther 飞花梦影
 * @date 2021-07-17 11:13:15
 * @git {@link https://github.com/dreamFlyingFlower}
 */
public class RestCrlSimpleWizardPage extends AbstractWizardPage {

	public Boolean isMavenType;

	public Button maven;

	public Button gradle;

	public Button none;

	public RestCrlSimpleWizardPage(ISelection selection) {
		super("wizardPage");
		setTitle("Spring ControllerSimple Wizard");
		setDescription("Spring ControllerSimple Class Definition");
		this.selection = selection;
	}

	public Boolean getIsMavenType() {
		if (maven.getSelection()) {
			isMavenType = true;
		} else if (gradle.getSelection()) {
			isMavenType = false;
		}
		return isMavenType;
	}

	public Boolean getIsNone() {
		return none.getSelection();
	}
}